#include<stdio.h>
#include<stdlib.h>

int compar(void *e1, void *e2){
    return (*(int *)e1 - *(int *)e2);
}

int main(){
    int r[3];
    scanf("%d %d %d", &r[0], &r[1], &r[2]);
    qsort(r, 3, sizeof(*r), compar);
    if(r[0]+r[1]<=r[2]){
        printf("Not triangle");
    }else{
        if(r[0]*r[0]+r[1]*r[1]==r[2]*r[2]) printf("Right triangle");
        else if(r[0]*r[0]+r[1]*r[1]==r[2]*r[2])
    }

    return 0;
}